package com.wei.ds;

import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ScheduledThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

/**
 * @Author :sunwei
 * @Description:
 * @Date create in 22:29  2021/4/19
 * @Modified by:
 */
public class TestMain2 {

    public static void main(String[] args) {
        ScheduledExecutorService scheduledExecutorService = new ScheduledThreadPoolExecutor(4);
        scheduledExecutorService.schedule(()->{
            System.out.println("ssssssssss");
        }, 10, TimeUnit.SECONDS);
    }
}
